﻿<%@ Page Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="TopicFiles.aspx.cs" Inherits="Topics_TopicFiles" %>
<asp:Content ID="Content3" ContentPlaceHolderID="phMain" Runat="Server">
    <asp:Panel ID="Panel1" CssClass="DirectionText" runat="server">
        <p>The files currrently uploaded for this topic.</p>
        <%# string.Format("<p>{0}</p>", CurrentGroup.Notes)%>
    </asp:Panel>
    <telerik:RadGrid ID="gridFiles" AutoGenerateColumns="False" 
        DataSourceID="dsFiles" runat="server" GridLines="None">
<MasterTableView DataSourceID="dsFiles">
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn Visible="False" Resizable="False">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>

    <Columns>
        <telerik:GridBoundColumn DataField="Name" HeaderText="Name" ReadOnly="false" UniqueName="column">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="FileType" HeaderText="File Type" ReadOnly="True" 
            UniqueName="column1">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="ContentType" HeaderText="Content Type" ReadOnly="true" UniqueName="column2">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Width" HeaderText="Width" ReadOnly="true" UniqueName="column4">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Height" HeaderText="Width" ReadOnly="true" UniqueName="column5">
        </telerik:GridBoundColumn>
        <telerik:GridTemplateColumn>
            <ItemTemplate>
                <acms:AcmsImage ID="img" FileId='<%#Eval("FileId") %>' RenderWidth="200" RenderHeight="200" runat="server"/>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
    </Columns>

<EditFormSettings>
<PopUpSettings ScrollBars="None"></PopUpSettings>
</EditFormSettings>
</MasterTableView>
    </telerik:RadGrid>
    <acms:TopicFileDataSource ID="dsFiles" runat="server" 
        onselectdata="dsFiles_SelectData"></acms:TopicFileDataSource>
    
</asp:Content>

